using System;
using System.Collections.Generic;
using System.Text;

using NUnit.Framework;

using NSimpleDB.Service.Contract;
using NSimpleDB.Service.Amazon;

namespace test.Service.Amazon
{
    [TestFixture]
    public class test_xml
    {
        [Test]
        public void testCreateDomain()
        {
            using (ISimpleDBService s = new AmazonSimpleDBService(""))
            {
                s.CreateDomain("d");
            }
        }

        [Test]
        public void testListDomains()
        {
            using (ISimpleDBService s = new AmazonSimpleDBService(""))
            {
                for (int i = 0; i < 10; i++)
                    s.CreateDomain("d" + i.ToString());

                string[] resultset;
                string nextToken;
                resultset = s.ListDomains(100, out nextToken);
                Assert.AreEqual(10, resultset.Length);
            }
        }
    }
}
